import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const income: AppRouteModule = {
  path: '/income',
  name: 'Income',
  component: LAYOUT,
  redirect: '/income/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'qianbao',
    title: t('routes.dashboard.income'),
    orderNo: 1000003,
  },
  children: [
    {
      path: 'index',
      name: 'incomePage',
      component: () => import('@/views/business/income/index.vue'),
      meta: {
        title: t('routes.dashboard.income'),
        icon: 'qianbao',
        hideMenu: true,
      },
    },
  ],
};

export default income;
